
window.onload=function (){
	

	function tab(a,b,c,d,e,f,g){
		

		var oUl=document.getElementById(a)
		var aLi=oUl.getElementsByTagName(b)
		var oCont1=document.getElementById(c)
		var aDiv=oCont1.getElementsByClassName(d)
		for(var i=0;i<aLi.length;i++){
			aLi[i].index=i;		
			//点击
			aLi[i].onclick=function (){
				for(var j=0;j<aLi.length;j++){
					aDiv[j].className=e;
					aLi[j].className="";
				}
				console.log(this.index)
				aDiv[this.index].className=f;
				this.className=g;
			}	
		}	
	}
//	tab("lunbo","i","lunbo-cont","comList","comList hide","comList","active")
	
	tab("one-tit1","li","one-cont1","cont","cont","tab_news pt20 cont xianshi","noBl xuanzhong")
	tab("two-tit","li","two-cont","item","item","item show","active")
	tab("three-tit1","a","three-cont1","tabs_item","tabs_item","tabs_item show","active")
	tab("three-tit2","li","three-cont2","cont","cont","cont xianshi","noBl active")
	tab("three-tit3","li","three-cont3","tabs_item","tabs_item","tabs_item show","noBl active")
	tab("four-tit1","li","four-cont1","tabs_item","tabs_item","tabs_item show","active")
	tab("four-tit2","li","four-cont2","tabs_item","tabs_item","tabs_item show","active")
	tab("five-tit","li","five-cont","tabs_item","tabs_item","tabs_item show","active")
	tab("six-tit","li","six-cont","tabs_item","tabs_item","tabs_item show","active")
	tab("seven-tit1","li","seven-cont1","tabs_item","tabs_item","tabs_item show","active")
//	tab2("seven-tit2","span","seven-cont2","tabs_item","tabs_item","tabs_item show","contNav_item active","contNav_item")
	tab("seven-tit3","li","seven-cont3","tabs_item","tabs_item","tabs_item show","active")
	
	var left=document.getElementById("left")
	var right=document.getElementById("right")
	left.onclick=function (){
		
	}
	
	

	
	
	
	
	
	
	
	
	
	
	
}

	
		


	
